import  yaml

class YamlUtils:
    @staticmethod
    def read_yaml(yaml_path,node_name):
        with open(yaml_path,'r',encoding='utf-8') as file:
            datas=yaml.safe_load(file)
            login_dict=datas[node_name]
            print(login_dict)
            print(login_dict.values())
            return  list(login_dict.values())

# if __name__ == '__main__':
#     YamlUtils.read_yaml("D:\\tools\PyCharm_xiangmu\\test_wmss\\bei_meng_ce\\datas\\test_login.yaml","case_login")
